QuaternaryList.RemoveMany(Func) method¶
Defined in
Type: QuaternaryListReactiveList.Reactive.Collections
Assembly: ReactiveList.Reactive.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
public int RemoveMany(Func<T, bool> predicate)
View source (opens in a new tab)
Summary: Removes all elements that match the specified predicate from the collection.
Parameters
| Name | Type | Description |
|---|---|---|
predicate | Func | A function that returns true for elements that should be removed. |
Returns: int (opens in a new tab) -- The number of elements removed from the collection.
Remarks
The predicate runs on a point-in-time copy outside the locks, so it may read the list. Items added after the copy was taken are not considered.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException (opens in a new tab) | predicate is null. |